package 装饰模式;

public class Test {
    public static void main(String[] args) {
        //低层包装高层

        ConcreteComponent demo = new ConcreteComponent();
        ConcreteDecoratorA demoa = new ConcreteDecoratorA(demo);
        ConcreteDecoratorB demob = new ConcreteDecoratorB(demoa);
        ConcreteDecoratorC democ = new ConcreteDecoratorC(demob);
        democ.Operation();

    }
}
